// 平台用户管理api
import request from '@/utils/request'
const SystemUserManagement = {
  //分页条件查询
  queryPageByCondition (data) {
    return request({
      url: '/system/user/queryPageByCondition',
      method: 'post',
      data
    })
  },
  //条件查询
  queryByCondition (data) {
    return request({
      url: '/system/user/queryByCondition',
      method: 'post',
      data
    })
  },
  //新增
  add (data) {
    return request({
      url: '/system/user/add',
      method: 'post',
      data
    })
  },
  //编辑
  edit (data) {
    return request({
      url: '/system/user/edit',
      method: 'put',
      data
    })
  },
  //删除
  del (id) {
    return request({
      url: `/system/user/del?id=${id}`,
      method: 'delete'
    })
  },
  //批量删除
  delList (idList) {
    return request({
      url: `/system/user/delList?idList=${idList}`,
      method: 'delete',
    })
  },
  //修改密码
  updatePassword (data) {
    return request({
      url: '/system/user/updatePassword',
      method: 'post',
      data
    })
  },

  //修改状态
  updateStatus (data) {
    return request({
      url: '/system/user/updateStatus',
      method: 'post',
      data
    })
  },
}
export default SystemUserManagement




